import request from '@/utils/request'
// 获取-分页查询角色列表
export const getRoleRequest = ({ page, pagesize }) => {
  return request.get('/sys/role', { params: {
    pagesize,
    page
  }})
}
// 新增角色
export const addRoleRequest = (data) => {
  return request.post('/sys/role', data)
}
// 删除角色
export const removeRoleRequest = (id) => {
  return request.delete(`/sys/role/${id}`)
}
// 修改角色
export const updateRoleRequest = (data) => {
  return request.put(`/sys/role/${data.id}`, data)
}
